package com.iwomy.envpro.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 监测点
 *
 * @author pig
 * @date 2023-08-26 14:22:49
 */
@Data
@TableName("air_site")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "监测点")
public class AirSiteEntity extends Model<AirSiteEntity> {


	/**
	* ID
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="ID")
    private Long id;

	/**
	* 名称
	*/
    @Schema(description="名称")
    private String name;

	/**
	* 监测类型名称
	*/
    @Schema(description="监测类型名称")
    private String monitorTypeName;

	/**
	* 监测类型
	*/
    @Schema(description="监测类型")
    private Integer monitorType;

	/**
	* 区域名称
	*/
    @Schema(description="区域名称")
    private String areaName;

	/**
	* 区域ID
	*/
    @Schema(description="区域ID")
    private Long areaId;

	/**
	* 经度
	*/
    @Schema(description="经度")
    private BigDecimal longitude;

	/**
	* 纬度
	*/
    @Schema(description="纬度")
    private BigDecimal latitude;

	/**
	* 网格员名称
	*/
    @Schema(description="网格员名称")
    private String pname;

	/**
	*网格员ID
	*/
    @Schema(description="网格员ID")
    private Long pid;

	/**
	* 创建时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

	/**
	* 修改时间
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="修改时间")
    private LocalDateTime updateTime;
 
	/**
	* delFlag
	*/
    @TableLogic
		@TableField(fill = FieldFill.INSERT)
    @Schema(description="delFlag")
    private String delFlag;
}